<%@page import="com.bookyourtrek.model.SearchListPojo"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<div class="container-fluid">
	<div class="row-fluid">
		<div class="span2"></div>
		<div class="span8">
			<div class="row-fluid">
				<div class="span3">
					<div class="well" style="padding: 8px 0;">
        <ul class="nav nav-list">
          <li class="nav-header">Adventures You Created</li>
          <li class="active"><a href="userdashboard">Status</a></li>
          <li class="nav-header">Adventures You Booked</li>
          <li><a href="ordersummary">Order Summary</a></li>
          <li class="divider"></li>
          <li><a href="cancelticket">Cancel Ticket</a></li>
        </ul>
      </div>
				</div>
				<div class="span9">
				<table class="table">
  <caption></caption>
  <thead>
    <tr>
    <th>Adventure ID</th>
      <th>Date</th>
      <th>Location</th>
      <th>Title</th>
      <th>Status</th>
      <th></th>
    </tr>
  </thead>
  <tbody>
  <s:iterator value="searchlist">
    <tr>
    <td> 
    <s:form theme = "simple" action="adventuredetails" method="post" validate="true">
    <s:hidden name="adventureid" value="%{adventureid}"></s:hidden>
	<s:submit name="adventuredetails" theme = "simple" cssClass="btn" value="%{adventureid}"></s:submit>
									</s:form>
    </td>
      <td><i class="icon-calendar"></i> <s:property value="adventuredate"/>
	  </td>
	  <td><i class="icon-globe"></i> <s:property value="adventurelocation"/></td>
	        <td><h5><s:property value="adventuretitle"/></h5>
	        <br />
	  </td>
	  <td>
	  <s:if test='%{adventurestatus == "0"}'><span class="label label-success">Active</span></s:if>
	  <s:elseif test='%{adventurestatus == "1"}'><span class="label label-important">Canceled</span></s:elseif>
	  <s:elseif test='%{adventurestatus == "2"}'><span class="label label-warning">Pending</span></s:elseif>
	  <s:elseif test='%{adventurestatus == "3"}'><span class="label label-info">Saved</span></s:elseif>
	  </td>
	  <td>
	  <s:if test='%{adventurestatus == "0"}'></s:if>
	  <s:elseif test='%{adventurestatus == "1"}'></s:elseif>
	  <s:elseif test='%{adventurestatus == "2"}'></s:elseif>
	  <s:elseif test='%{adventurestatus == "3"}'></s:elseif>
	  
	  </td>
    </tr>
    </s:iterator>
  </tbody>
</table>
				</div>
			</div>
		</div>
		<div class="span2"></div>
	</div>
</div>
